window: Remove pointless ternary operator
authorTimm Bäder <mail@baedert.org>
Mon, 20 Mar 2017 13:59:14 +0000 (14:59 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 20 Mar 2017 13:59:14 +0000 (14:59 +0100)
we're already checking for orientation == GTK_ORIENTATION_HORIZONTAL
right before this line, so just pass GTK_ORIENTATION_VERTICAL.

gtk/gtkwindow.c

index f22b9ec91d725a90cfd12b7a17ca767c176686a3..50fe2acec50d6ca6f7d60cf3022a4278a762d453 100644 (file)
@@ -685,8 +685,7 @@ gtk_window_measure (GtkWidget      *widget,
           int size = for_size;
           if (orientation == GTK_ORIENTATION_HORIZONTAL && for_size >= 0)
             gtk_widget_measure (priv->title_box,
-                                orientation == GTK_ORIENTATION_HORIZONTAL ? GTK_ORIENTATION_VERTICAL :
-                                                                            GTK_ORIENTATION_HORIZONTAL,
+                                GTK_ORIENTATION_VERTICAL,
                                 -1,
                                 NULL, &size,
                                 NULL, NULL);